package chai.ning.bull;

public class Dog extends Animal{

	public void move() {
		System.out.println( "狗可以跑和走" );
	}
	public void bark() {
		System.out.println( "狗可以吠叫" );
	}
	public static void main(String[] args) {
		Animal a = new Animal();
		Animal b = new Dog();
		a.move();
		b.move();
		((Dog) b).bark();
	}

}
